<?php

namespace Admin\Controller;

use Think\Controller;

class CommonController extends Controller
{
    public function __construct()
    {
        parent::__construct();
        if (!session('user')){
            $this->error('请先登录！',U('Login/login'));
        }
    }
}

